package com.andyliu.dict.service.impl;

import com.andyliu.dict.entity.SysDictType;
import com.andyliu.dict.mapper.SysDictTypeMapper;
import com.andyliu.dict.service.ISysDictTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * <p>
 * 字典类型表 服务实现类
 * </p>
 *
 * @author andyLiu
 * @since 2021-10-08
 */
@Service
public class SysDictTypeServiceImpl extends ServiceImpl<SysDictTypeMapper, SysDictType> implements ISysDictTypeService {
    @Autowired
    private SysDictTypeMapper sysDictTypeMapper;

      public  IPage<SysDictType> selectByPage(Integer pageNumber,Integer pageSize, SysDictType sysDictType){
        return sysDictTypeMapper
                .selectByPage(new Page<SysDictType>(pageNumber,pageSize),sysDictType);
      }

}
